package com.xxx.td;

/**
 * @version v1.0
 * @Description:
 * @Author zhanzhongxin
 * @Date 2021/7/30 9:52
 * @Copyright 博为峰
 */
public class ThreadDemo03 extends Thread {
    public void run() {
//        int n = 1 / 0;
        for (int i = 0; i < 1000; i++) {
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println(Thread.currentThread().getName() + ",i = " + i);
        }
    }
}
